package yf.mall.enums;

import lombok.Getter;

import java.util.Arrays;


/**
 *
 *
 *
 * @date Wed Aug 19 17:10:55 CST 2020
 */
@Getter
public enum CashApplyIdentifyEnum {


                   ONE(0,"个人")
                                    ,


                   SHOP(1,"店铺")

                                ;


        int index;
        String value;

    public static String[] names(){
        return Arrays.stream(CashApplyIdentifyEnum.values()).map(m->m.getValue()).toArray(String[]::new);
    }

    CashApplyIdentifyEnum(int index, String value) {
        this.index = index;
        this.value = value;
        }

    public static String indexOf(int idx) {
        return CashApplyIdentifyEnum.values()[idx].getValue();
    }

}
